<div class="funcarea">
	<label>参数名</label>
	<select id="searchCondition">
	<option value="deployId">发布ID</option>
	
			
			
			
			
			
					<option value="level">等级</option>	
			
			
					<option value="enchantTime">最大免费强化次数</option>	
			
			
			
			
					<option value="requiredLevel">英雄等级下限</option>	
			
			
			
			
					<option value="maxStack">最大叠加数量</option>	
			
					<option value="recyclingPrice">回收价格</option>	
			
			
					<option value="skillId">对应技能ID</option>	
			
					<option value="itemres">资源SWF</option>	
				</select>
	<label>参数值</label>
	<input type="text" id="searchValue"/>
	<a href="javascript:void(0)" onclick="searchitem()">查询</a>
	<a href="javascript:void(0)" onclick="document.location.reload()">刷新</a>
	<a href="javascript:void(0)" onclick="promptAdd()">增加</a>
	<a href="javascript:void(0)" onclick="promptExport()">导出</a>
	<a href="javascript:void(0)" onclick="extract()">转换物品数据</a>
	<a href="javascript:void(0)" onclick="publish()">发布物品</a>
</div>
{% if pageLength > 1 %}
<center>
	<br/>
	{% if pageIndex > 1 %}
	<a href="javascript:void(0)" onclick="showMore({{pageIndex}} - 1)">上一页</a>
	{% endif %}
	<a href="javascript:void(0)" disabled>第{{pageIndex}}/{{pageLength}}页</a>
	{% if pageIndex < pageLength %}
	<a href="javascript:void(0)" onclick="showMore({{pageIndex}} + 1)">下一页</a>
	{% endif %}
	<a href="javascript:void(0)" onclick="go2Page()">跳至</a>第
	<input type="text" size="2" id="pageValue" value="{{pageIndex}}"/>页
	<br/>
</center>
{% endif %}
<div class="dataarea">
	<table>
		<thead>
			<tr>
			<th nowrap>发布ID</th>
			
				<th nowrap>名字</th>
			
				<th nowrap>描述</th>
			
				<th nowrap>道具大类</th>
			
				<th nowrap>道具小类</th>
			
				<th nowrap>攻击方式</th>
			
				<th nowrap>等级</th>
			
				<th nowrap>品质</th>
			
				<th nowrap>最大免费强化次数</th>
			
				<th nowrap>绑定类型</th>
			
				<th nowrap>道具基础属性</th>
			
				<th nowrap>道具属性集</th>
			
				<th nowrap>英雄等级下限</th>
			
				<th nowrap>职业要求</th>
			
				<th nowrap>性别要求</th>
			
				<th nowrap>是否唯一拥有</th>
			
				<th nowrap>最大叠加数量</th>
			
				<th nowrap>回收价格</th>
			
				<th nowrap>是否可以售卖</th>
			
				<th nowrap>对应技能ID</th>
			
				<th nowrap>资源SWF</th>
							<th nowrap class="operator">----------操作---------</th>
			</tr>
		</thead>
		<tbody>
		{% for item in items %}
			<tr id="row_{{ item.id }}">
				<td><a href="javascript:void(0)" onclick="promptMenu({{ item.id }})">{{ item.deployId }}</a></td>
				
					
						<td>{{ item.name }}</td>
									
					
						<td>{{ item.desc }}</td>
									
											<td>
							<select disabled>
																
									<option value="1" {% ifequal 1 item.categoryId %}selected="selected"{% endifequal %}>装备类</option>
								
									<option value="2" {% ifequal 2 item.categoryId %}selected="selected"{% endifequal %}>技能类</option>
								
									<option value="3" {% ifequal 3 item.categoryId %}selected="selected"{% endifequal %}>商城道具类</option>
								
									<option value="4" {% ifequal 4 item.categoryId %}selected="selected"{% endifequal %}>碎片类</option>
								
									<option value="5" {% ifequal 5 item.categoryId %}selected="selected"{% endifequal %}>任务物品类</option>
								
									<option value="6" {% ifequal 6 item.categoryId %}selected="selected"{% endifequal %}>战利品类</option>
								
									<option value="7" {% ifequal 7 item.categoryId %}selected="selected"{% endifequal %}>属性道具类</option>
								
									<option value="8" {% ifequal 8 item.categoryId %}selected="selected"{% endifequal %}>其它类</option>
															</select>
						</td>
									
											<td>
							<select disabled>
																
									<option value="1" {% ifequal 1 item.typeId %}selected="selected"{% endifequal %}>武器类</option>
								
									<option value="2" {% ifequal 2 item.typeId %}selected="selected"{% endifequal %}>头部防具</option>
								
									<option value="3" {% ifequal 3 item.typeId %}selected="selected"{% endifequal %}>铠甲</option>
								
									<option value="4" {% ifequal 4 item.typeId %}selected="selected"{% endifequal %}>盾牌</option>
								
									<option value="5" {% ifequal 5 item.typeId %}selected="selected"{% endifequal %}>坐骑</option>
								
									<option value="6" {% ifequal 6 item.typeId %}selected="selected"{% endifequal %}>时装</option>
								
									<option value="7" {% ifequal 7 item.typeId %}selected="selected"{% endifequal %}>技能卡片</option>
								
									<option value="8" {% ifequal 8 item.typeId %}selected="selected"{% endifequal %}>碎片</option>
								
									<option value="9" {% ifequal 9 item.typeId %}selected="selected"{% endifequal %}>任务物品</option>
								
									<option value="10" {% ifequal 10 item.typeId %}selected="selected"{% endifequal %}>战利品</option>
								
									<option value="11" {% ifequal 11 item.typeId %}selected="selected"{% endifequal %}>头发</option>
								
									<option value="12" {% ifequal 12 item.typeId %}selected="selected"{% endifequal %}>眼睛</option>
								
									<option value="13" {% ifequal 13 item.typeId %}selected="selected"{% endifequal %}>眉毛</option>
								
									<option value="14" {% ifequal 14 item.typeId %}selected="selected"{% endifequal %}>鼻子</option>
								
									<option value="15" {% ifequal 15 item.typeId %}selected="selected"{% endifequal %}>胡子/装饰</option>
								
									<option value="16" {% ifequal 16 item.typeId %}selected="selected"{% endifequal %}>嘴巴</option>
								
									<option value="17" {% ifequal 17 item.typeId %}selected="selected"{% endifequal %}>礼包</option>
								
									<option value="18" {% ifequal 18 item.typeId %}selected="selected"{% endifequal %}>消耗类</option>
								
									<option value="19" {% ifequal 19 item.typeId %}selected="selected"{% endifequal %}>宝箱类</option>
								
									<option value="20" {% ifequal 20 item.typeId %}selected="selected"{% endifequal %}>精力包</option>
								
									<option value="21" {% ifequal 21 item.typeId %}selected="selected"{% endifequal %}>银币包</option>
								
									<option value="22" {% ifequal 22 item.typeId %}selected="selected"{% endifequal %}>加速修炼</option>
								
									<option value="23" {% ifequal 23 item.typeId %}selected="selected"{% endifequal %}>切磋凭证</option>
															</select>
						</td>
									
											<td>
							<select disabled>
																
									<option value="0" {% ifequal 0 item.attackType %}selected="selected"{% endifequal %}>不限</option>
								
									<option value="1" {% ifequal 1 item.attackType %}selected="selected"{% endifequal %}>砸</option>
								
									<option value="2" {% ifequal 2 item.attackType %}selected="selected"{% endifequal %}>戳</option>
								
									<option value="3" {% ifequal 3 item.attackType %}selected="selected"{% endifequal %}>投</option>
								
									<option value="4" {% ifequal 4 item.attackType %}selected="selected"{% endifequal %}>射</option>
															</select>
						</td>
									
					
						<td>{{ item.level }}</td>
									
											<td>
							<select disabled>
																
									<option value="1" {% ifequal 1 item.qualityId %}selected="selected"{% endifequal %}>白色</option>
								
									<option value="2" {% ifequal 2 item.qualityId %}selected="selected"{% endifequal %}>绿色</option>
								
									<option value="3" {% ifequal 3 item.qualityId %}selected="selected"{% endifequal %}>蓝色</option>
								
									<option value="4" {% ifequal 4 item.qualityId %}selected="selected"{% endifequal %}>紫色</option>
								
									<option value="5" {% ifequal 5 item.qualityId %}selected="selected"{% endifequal %}>橙色</option>
															</select>
						</td>
									
					
						<td>{{ item.enchantTime }}</td>
									
											<td>
							<select disabled>
																
									<option value="0" {% ifequal 0 item.bindType %}selected="selected"{% endifequal %}>不绑定</option>
								
									<option value="1" {% ifequal 1 item.bindType %}selected="selected"{% endifequal %}>绑定</option>
								
									<option value="2" {% ifequal 2 item.bindType %}selected="selected"{% endifequal %}>拥有后绑定</option>
								
									<option value="3" {% ifequal 3 item.bindType %}selected="selected"{% endifequal %}>装备后绑定</option>
								
									<option value="4" {% ifequal 4 item.bindType %}selected="selected"{% endifequal %}>使用后绑定</option>
															</select>
						</td>
									
					
						<td>{{ item.props }}</td>
									
					
						<td>{{ item.propertySet }}</td>
									
					
						<td>{{ item.requiredLevel }}</td>
									
											<td>
							<select disabled>
																
									<option value="0" {% ifequal 0 item.requiredCareerId %}selected="selected"{% endifequal %}>职业不限</option>
								
									<option value="1" {% ifequal 1 item.requiredCareerId %}selected="selected"{% endifequal %}>武将</option>
								
									<option value="2" {% ifequal 2 item.requiredCareerId %}selected="selected"{% endifequal %}>文官</option>
															</select>
						</td>
									
											<td>
							<select disabled>
																
									<option value="0" {% ifequal 0 item.requiredGenderId %}selected="selected"{% endifequal %}>性别不限</option>
								
									<option value="1" {% ifequal 1 item.requiredGenderId %}selected="selected"{% endifequal %}>男</option>
								
									<option value="2" {% ifequal 2 item.requiredGenderId %}selected="selected"{% endifequal %}>女</option>
															</select>
						</td>
									
											<td>
							<select disabled>
																
									<option value="0" {% ifequal 0 item.unique %}selected="selected"{% endifequal %}>否</option>
								
									<option value="1" {% ifequal 1 item.unique %}selected="selected"{% endifequal %}>是</option>
															</select>
						</td>
									
					
						<td>{{ item.maxStack }}</td>
									
					
						<td>{{ item.recyclingPrice }}</td>
									
											<td>
							<select disabled>
																
									<option value="0" {% ifequal 0 item.canSell %}selected="selected"{% endifequal %}>是</option>
								
									<option value="1" {% ifequal 1 item.canSell %}selected="selected"{% endifequal %}>否</option>
															</select>
						</td>
									
					
						<td>{{ item.skillId }}</td>
									
					
						<td>{{ item.itemres }}</td>
													<td class="operator">
					<a href="javascript:edititem({{ item.id }})">编辑</a>
					<a href="javascript:removeitem({{ item.id }})">删除</a>
					<a href="javascript:showitem({{ item.id }})">显示JSON</a>
				</td>
			</tr>
		{% endfor %}
		</tbody>
	</table>
</div>
{% if pageLength > 1 %}
<center>
	<br/>
	{% if pageIndex > 1 %}
	<a href="javascript:void(0)" onclick="showMore({{pageIndex}} - 1)">上一页</a>
	{% endif %}
	<a href="javascript:void(0)" disabled>第{{pageIndex}}/{{pageLength}}页</a>
	{% if pageIndex < pageLength %}
	<a href="javascript:void(0)" onclick="showMore({{pageIndex}} + 1)">下一页</a>
	{% endif %}
	<a href="javascript:void(0)" onclick="go2Page()">跳至</a>第
	<input type="text" size="2" id="pageValue" value="{{pageIndex}}"/>页
	<br/>
</center>
{% endif %}
